/**
 * 
 */
package org.insia.smartposse.metier.webservice;

import java.io.Serializable;

import org.insia.smartposse.metier.Skill;

/**
 * @author raguerri
 * @since 18 avr. 07
 * @version 0.0.1
 * 
 */
public class LightSkill 
implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3863429929894538596L;
	private long id ;
	private long category;
	private String label;
	
	/**
	 * 
	 *
	 */
	public LightSkill() {
	}
	
	/**
	 * 
	 * @param skill
	 */
	public LightSkill (Skill skill) {
		id = skill.getId();
		category = skill.getCategory() != null ?skill.getCategory().getId() : -1L;
		label = skill.getLabel();
	}

	/**
	 * @return the category
	 */
	public long getCategory() {
		return category;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @return the label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param category the category to set
	 */
	public void setCategory(long category) {
		this.category = category;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @param label the label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}
}
